package com.example.understandvideo.mapper;

import com.example.understandvideo.pojo.MarathonResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface MarathonResultDao {
    int deleteByPrimaryKey(Long id);

    int insert(MarathonResult record);

    int insertSelective(MarathonResult record);

    MarathonResult selectByPrimaryKey(Long id);
    MarathonResult selectByTaskIdAndPlayerId(@Param("taskId") Long taskId,@Param("playerId") Long playerId);
    List<MarathonResult> selectByTaskId(@Param("taskId") Long taskId);

    int updateByPrimaryKeySelective(MarathonResult record);

    int updateByPrimaryKey(MarathonResult record);
    int updateFilePath(MarathonResult record);
}